<template>
  <div class="home">
    <div class="snail_top" >
      <top ></top>
    </div>
    <div style="width: 100%">
      <router-view ref="testBody" :inputKeyword="keyword"></router-view>
    </div>
  </div>
</template>

<script>


import Top from "@/components/top.vue";
export default {
  name: 'Home',
  components: {Top},
  data(){
    return {
      isShowMainBody:false,
      keyword:'',
    }
  },
 watch:{
    keyword(val){
    }
 },
methods:{


},
  created() {
    this.isShowMainBody=sessionStorage.getItem("isShowMainBody");
    if (this.isShowMainBody==false||this.isShowMainBody==undefined||this.isShowMainBody=="false")this.$router.push("/MainBody")
    sessionStorage.setItem("isShowMainBody",true)
  }
}
</script>
<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}


.snail_top{

}
</style>